package com.example.spring_config.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.spring_config.mapper.Permission;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface PermissionDao extends BaseMapper<Permission> {

    /**
     * 根据用户id获取权限url
     * @param uid
     * @return
     */
    Set<String> getPermissionUrlByUid(String uid);

    /**
     * 获取用户的菜单权限
     * @param uid
     * @return
     */
    Set<Permission> getUserPermission(String uid);

}
